<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>聚光灯效果</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background: #222;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;

        }

        h1 {
            color: #333;
            font-size: 8rem;
            position: relative;

        }

        h1:after {
            content: "SUIYUAN";
            color: transparent;
            position: absolute;
            left: 0;
            top: 0;
            background: -webkit-linear-gradient(left, #d43030, #307c53, #DA70D6, #8A2BE2, #7B68EE,
                    #F8F8FF, #CCCCFF, #996666);
            background-clip: text;
            -webkit-background-clip: text;
            /* 文字以外的隐藏*/
            clip-path: circle(100px at 0% 50%);
            animation: light 5s infinite;



        }

        @keyframes light {
            0% {
                clip-path: circle(100px at 0% 50%);
            }

            50% {
                clip-path: circle(100px at 100% 50%);
            }

            100% {
                clip-path: circle(100px at 0% 50%);
            }
        }
    </style>
</head>

<body>
    <h1>SUIYUAN</h1>

</body>

</html>